package com.shuyuntu.proposal.entity;

import javax.persistence.*;

/**
 * 代表了一个分管部门的Entity
 *
 * @author limeng
 * Created by limeng on 16/4/15.
 */
@Entity
@Table(name = "department")
public class Department {
    /**
     * 部门的id
     */
    private String id;

    /**
     * 名称
     */
    private String name;

    /**
     * 无参构造函数
     */
    public Department() {
    }

    @Id
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(length = 10, nullable = false)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
